import pygame


class Room:
    def __init__(self, x, y):
        self.door = {"up": True, "down": True, "left": True, "right": True, "upSite": x, "downSite": x + 10,
                     "leftSite": y, "rightSite": y + 10}
        self.isInit = False
        self.X = x
        self.Y = y


world_list = [[0 for i in range(50)] for j in range(50)]
wall_list = []

def prim(i, j):
    world_list[i][j].isInit = True
    if world_list[i][j].door["up"]:
        wall_list.append(world_list[i][j].door["upSite"])

def maze_init(screen):
    global world_list
    for i in range(50):
        for j in range(50):
            world_list[i][j] = Room(i + 25, j + 25)
            if i == 0:
                world_list[i][j].door["up"] = False



# 颜色
black = (0, 0, 0)
white = (255, 255, 255)
red = (255, 0, 0)
colour = [black, white, red]

pygame.init()
screen = pygame.display.set_mode((550, 550))
pygame.display.set_caption('迷宫')
running = True
while running:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            running = False
    pygame.display.update()

pygame.quit()
